package com.gdpa.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gdpa.entity.SaleArea;
import com.gdpa.entity.SysUser;
import com.gdpa.mapper.SaleAreaMapper;
import com.gdpa.service.ISaleAreaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 出售区域表 服务实现类
 * </p>
 *
 * @author zsr
 * @since 2018-12-19
 */
@Service
public class SaleAreaServiceImpl extends ServiceImpl<SaleAreaMapper, SaleArea> implements ISaleAreaService {

    @Autowired
    SaleAreaMapper saleAreaMapper;


    @Override
    public List<SaleArea> search(IPage page, String search) {
        return saleAreaMapper.search(page,search);
    }

    @Override
    public SaleArea findById(Integer saleAreaId) {
        return saleAreaMapper.findById(saleAreaId);
    }

    @Override
    public boolean save(SaleArea saleArea) {
        return saleAreaMapper.save(saleArea);
    }

    @Override
    public boolean edit(SaleArea saleArea) {
        return saleAreaMapper.edit(saleArea);
    }

    @Override
    public boolean delete(Integer saleAreaId) {
        return saleAreaMapper.delete(saleAreaId);
    }
}
